package com.xiaoxing.zhinenghuacangku_nanjinglu.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.contract.NanJingLu_DianBiaoAGVRuKuContract;
import com.xiaoxing.zhinenghuacangku_nanjinglu.mvp.model.NanJingLu_DianBiaoAGVRuKuModel;


@Module
public class NanJingLu_DianBiaoAGVRuKuModule {
    private NanJingLu_DianBiaoAGVRuKuContract.View view;

    /**
     * 构建NanJingLu_DianBiaoAGVRuKuModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public NanJingLu_DianBiaoAGVRuKuModule(NanJingLu_DianBiaoAGVRuKuContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    NanJingLu_DianBiaoAGVRuKuContract.View provideNanJingLu_DianBiaoAGVRuKuView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    NanJingLu_DianBiaoAGVRuKuContract.Model provideNanJingLu_DianBiaoAGVRuKuModel(NanJingLu_DianBiaoAGVRuKuModel model) {
        return model;
    }
}